What is the Hack about?
The hack reads an derivated model from forge, presents it in the forge viewer and, when you hit the magic button, it pushes the data into an speckle stream. So the geometry and meta data is available in speckle for other cool stuff.
What inspired us for this Hack?
We want to bring the huge amount of model available through the model derivative api in forge into the speckleverse!
How was the Hack built? What technology did we use?
You can find a detailed docu in the readme.md in th root of our repository. First we wrote a .net backend server. This is used to communicate with the speckle server for fetching streams and pushing the data into an selected stream. The backend provides a rest api, documented via swagger for testing. The frontend, written in react takes care about the loading and viewing inside the forge viewer. The viewer existed before, available at forge. We needed to use this tool because there is no other way to access the geometry in the derivated svf2 files. The frontend loads a model via an urn. You can provide your own models in your own forge environment. For the testing we've used models we've derivated. When a model is loaded you can select the target stream in a dropdown. Once this is done you only need to push the commit button and voila, the model is in speckle.
What accomplishments are we most proud of?
We're proud of enriching the speckleverse with 70+ fileformats without writing 70+ connectors. For the usecase of bringing viewable models into speckle the approach is fine, as long as you don't want to push the models back to the 70+ software products ;-) So, we opened up the speckle world to mechanical software, formats used in media & entertainment and so on.